package com.bytz.modules.cms.order.model;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.bytz.common.aspect.annotation.Dict;
import com.bytz.common.entity.annotation.MPJFieldMapping;
import com.bytz.modules.cms.common.excel.ExcelDictConvert;
import com.bytz.modules.cms.order.entity.Order;
import com.bytz.modules.cms.order.entity.OrderPay;
import com.bytz.modules.cms.order.entity.OrderPayDetail;
import com.bytz.modules.cms.reseller.entity.Reseller;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;

@Getter
@Setter
public class OrderBillExcel{

    @ExcelProperty("经销商名")
    private String resellerName;

    @ExcelProperty("合同号")
    private String contractNumber;

    @ExcelProperty("合同客户编码")
    private String demanderNumber;

    @ExcelProperty("合同客户名称")
    private String demanderName;

    @ExcelProperty("销售外部编号")
    private String salesExternalId;

    @ExcelProperty("销售")
    private String salesName;

    @ExcelProperty(value = "付款方式", converter = ExcelDictConvert.class)
    @Dict(dicCode = "mall_order_pay_way")
    private String payWay;

    @ApiModelProperty(value = "交易单号")
    @ExcelProperty(value = "汇款编号")
    private String transactionNumber;

    @ApiModelProperty(value = "付款源")
    @ExcelProperty(value = "付款银行")
    private String paySource;

    @ApiModelProperty(value = "支付金额")
    @ExcelProperty(value = "支付金额")
    private BigDecimal payAmount;

    @ApiModelProperty(value = "商户交易日期", notes = "格式为：yyyyMMDD")
    @ExcelProperty(value = "商户交易日期")
    private String tranDate;

    @ApiModelProperty(value = "完成交易日期", notes = "格式为：yyyyMMDD")
    @ExcelProperty(value = "完成交易日期")
    private String completeDate;

    @ExcelProperty(value = "支付状态", converter = ExcelDictConvert.class)
    @ApiModelProperty("支付状态")
    @Dict(dicCode = "mall_order_pay_status")
    private String payStatus;

}
